package com.dingxin.ship_together_api.entity.vo.route;

import com.dingxin.ship_together_api.entity.RouteDestination;
import com.dingxin.ship_together_api.entity.RouteSeat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * Author: ctj
 * Date: 2022-11-18
 * Time: 17:04
 * description: 包船航线和拼船航线通用新增vo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RouteAddVo {
    /**
     * 船只id
     */
    private Long shipId;

    /**
     * 航线类型 0-拼船  1-包船
     */
    private Integer routeType;

    /**
     * 最低成单座位数
     */
    private Integer successSeats;

    /**
     * 下单截止时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deadline;

    /**
     * 目的地列表
     */
    private List<RouteDestination> destinationList;

    /**
     * 出发时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 返回时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 座位表,拼船时
     */
    private List<RouteSeat> seatList;


}
